package com.slixils.demo.vo;

//import com.jayway.jsonpath.internal.function.text.Length;

import com.slixils.demo.validator.IsMobile;
import com.slixils.demo.validator.IsPassWord;
import org.hibernate.validator.constraints.Length;

/**
 * @Author: JinChongLi
 * @Description:
 * @Date: Created in 19:59 2022/4/5
 * @Modified By:
 */

public class LoginVo {


    @IsMobile
    @Length(min = 11, max = 11, message = "手机号码长度不正确")
    private String mobile;


    @Length(min = 32)
    @IsPassWord()
    private String password;


    @Override
    public String toString() {
        return "LoginVo{" +
                "mobile='" + mobile + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}



